package com.gyyx.transfer.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gyyx.transfer.dao.UserMysqlMapper;
import com.gyyx.transfer.po.UserMysql;
import com.gyyx.transfer.po.UserMysqlExample;
import com.gyyx.transfer.service.ExportService;
import com.gyyx.transfer.support.DataSource;

@Service
public class ExportServiceImpl implements ExportService {
	@Autowired
	private UserMysqlMapper userMysqlMapper;

	@Override
	@DataSource("dataSource1")
	public List<UserMysql> getAlldata() {
		List<UserMysql> list = userMysqlMapper.selectByExample(new UserMysqlExample());
		System.err.println("查询数量"+list.size());
		return list;
	}

}
